package lol.clann.minecraft.springboot.plugin.bukkit.impl;

import lol.clann.minecraft.springboot.api.bukkit.utils.PluginUtils;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import org.springframework.stereotype.Service;

/**
 *
 * @author pyz
 * @date 2019/5/2 6:04 PM
 */
@Service
public class PluginUtilsImpl implements PluginUtils {
    private JavaPlugin self = (JavaPlugin) Bukkit.getPluginManager().getPlugin("SpringBootPlugin");

    /**
     * 返回本框架所依托的插件实例
     *
     * @return
     */
    @Override
    public JavaPlugin getSelf() {
        return self;
    }
}
